<template>
  <div>
<list-vue @willUpdate="willUpdate" :arr='arr'  @init="getlist"></list-vue>
<form-vue :arr="arr" :info="info"  @init="getlist" ref="form"></form-vue>
    
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import listVue from '../member/components/list.vue'
import formVue from '../member/components/form.vue'
import {reqmemberlist} from '../../http/api'
import { toggle } from "../../mixins";
export default {
  props: [],
  mixins:[toggle],
  components:{
    listVue,
    formVue
  },
  data() {
    return {
      arr:[],
      // user:{
      //   uid:'',
      //   nickname:'',
      //   phone:'',
      //   password:'',
      //   status:1
      // }
    };
  },
  computed: {
    ...mapGetters({}),
  },
  mounted() {
   this.getlist()
    
  },
  methods: {
    ...mapActions({}),
    //请求列表
     getlist() {
     reqmemberlist().then((res) => {
        if (res.data.code == 200) {
          this.arr = res.data.list ? res.data.list : [];
        }
      });
    },
  },
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
</style>